package cn.trip.biz.service;

import cn.itrip.beans.dto.Dto;
import cn.itrip.beans.pojo.ItripHotelOrder;
import cn.itrip.beans.pojo.ItripUseLinkUser;
import cn.itrip.beans.pojo.ItripUser;

import java.util.List;
import java.util.Map;


public interface FindUsertoUserService {
    List<ItripUseLinkUser> fingUsertoUser2(long id);

    List<ItripUseLinkUser> fingUsertoUser(ItripUser users);

    /**
     * @param users 是通过usercode查处的对象
     * @param
     * @param
     * @return
     */
    List<ItripUseLinkUser> findUsertosession(String conditions, ItripUser users);

    ItripUser selectUserid(String userCode);

    void setredis(Object key, Object value);

    Object getredis(String key);

    int selectCount(long Id);

    /**
     * 模糊查询
     *
     * @param id
     * @param
     * @param
     * @param conditions
     * @return
     */
    List<ItripUseLinkUser> findUsertoUserByconditions(long id, String conditions);

    List<ItripUseLinkUser> findUsertoUserByconditions2(long id, String conditions);

    //验证参数id是不是token的id
    public boolean idIsOk(Long id, String token);

    /**
     * 查询常用旅客
     *
     * @param users
     * @return
     */
    boolean setlinkUser(ItripUseLinkUser users);

    /**
     * 后台验证
     *
     * @param str   手机号或身份证
     * @param regex 正则表达式
     * @return
     */
    boolean check(String str, String regex);

    boolean addlinkUser(ItripUseLinkUser linkUser);

    Dto delect(long id, int userid);
}
